.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* min-height: calc(100vh - 140px); 减去header和footer的高度 */
    padding: 20px;
}

.auth-content {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
}

.auth-forms {
    height: 500px;
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-image img {
    width: 350px;
    height: auto;
    margin-bottom: 100px;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.auth-form.active {
    display: flex;
}

.auth-form h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.auth-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    background: var(--primary-color-hover);
}

.switch-text {
    text-align: center;
    color: var(--text-color);
    margin-top: 10px;
}

.switch-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.switch-link:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .auth-content {
        flex-direction: column;
    }

    .auth-image {
        display: none;
    }

    .auth-forms {
        padding: 20px;
    }
} 